#include<stdio.h>typedef struct{int n;int d;}FRACTION;void main(){FRACTION a, b, c;printf("enter fraction 1:\n");scanf("%d%d",&a.n,&a.d);printf("enter fraction 2:\n");scanf("%d%d",&b.n,&b.d);c.n=a.n*b.n;c.n=a.d*b.d;printf("%d%d*%d%d=%d%d\n",a.n,a.d,b.n,b.d,c.n,c.d);}
If the angular velocity of merry go round is 60 degree/sec and you are 3.5m from the centre of rotation your linera velocity will be int find(int a){if(a<<=1) return 1;if(a%2==0) return find (a/2);return find(a/2)+find(a/2-1);}void main(){printf("%d",find(7));}#include<stdio.h>void main(){int a[]={10,20,30,40,50};int *p;int *q;p=&a[0];q=&a[4];while(p<=q){printf("%d\n",*p);p++;}printf("\n");}