Write a program to find the sum of squares of digits of a number.

#include<stdio.h>
#include<conio.h>
void main()
{
  int num, sum=0,rem;
  printf("\n Enter a number: ");
  scanf("%d",&num);
  while(num>0)
  {
     rem=num%10;
     num=num/10;
     sum=sum+rem;
  }
  printf("\n sum of digits = %d",sum);
  getch();